﻿function PlayEmbed(img) {
    if (img.src.indexOf("open") != -1) {
        var mp3 = 'userfiles/scenic/voice/' + $("#mp3file").val() + '&autostart=1';
        $("#playerbox").html('<embed src="public/dewplayer/dewplayer.swf?mp3=' + mp3 + '"' +
                'type="application/x-shockwave-flash"' +
                'bgcolor="#ffffff" quality="high" wmode="transparent"' +
                'allowfullscreen="true" allowscriptaccess="always" width="200" height="20"' +
                'pluginspage="http://www.macromedia.com/go/getflashplayer" />');
        img.src = "images/col.png";

    }
    else { $("#playerbox").html(""); img.src = "images/open.png"; }
}